﻿using System.Collections.Generic;
using Application.Core.Entities;

namespace Application.Core.Interfaces
{
    /// <summary>
    /// 分类领域服务定义
    /// </summary>
    public interface ICategoryService
    {
        /// <summary>
        /// 获取根分类
        /// </summary>
        /// <returns></returns>
        Category GetRootCategory();
        Category CreateRootCategory(User user);

        /// <summary>
        /// 获取所有子类
        /// </summary>
        /// <returns></returns>
        List<Category> GetChildCategories();

        bool HasChild(Category category);

        bool AddCategory(Category category);

        bool RemoveCategory(Category category);
        List<Document> GetAllDocuments(Category category);
    }
}
